﻿using CommunityToolkit.Mvvm.ComponentModel;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZoneLine.Models
{
    [Table(Name ="formulaconfig")]
    public class FormulaConfigModel : ObservableObject
    {

        /// <summary>
        /// ID
        /// </summary>
        [Column(IsIdentity = true)]
        public int ID { get; set; }


        private string _plcIp;
        /// <summary>
        /// PlcIp
        /// </summary>
        public string PlcIp
        {
            get { return _plcIp; }
            set => SetProperty(ref _plcIp, value);
        }


        private int? _number;
        /// <summary>
        /// 配方号
        /// </summary>
        public int? Number
        {
            get { return _number; }
            set => SetProperty(ref _number, value);
        }


        private string _fieldDescription;
        /// <summary>
        /// 字段描述
        /// </summary>
        public string FieldDescription
        {
            get { return _fieldDescription; }
            set => SetProperty(ref _fieldDescription, value);
        }


        private string _fieldValue;
        /// <summary>
        /// 字段值
        /// </summary>
        public string FieldValue
        {
            get { return _fieldValue; }
            set => SetProperty(ref _fieldValue, value);
        }

        private DateTime _createDTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        //[Column(ServerTime = DateTimeKind.Local)]
        public DateTime CreateTime
        {
            get { return _createDTime; }
            set => SetProperty(ref _createDTime, value);
        }
    }
}
